package com.xteam.xnetworkdisk.sys.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xteam.xnetworkdisk.sys.entity.ShareEntity;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xiajunjie
 * @since 2024-08-12
 */
public interface ShareDao extends BaseMapper<ShareEntity> {
    int insertShare(@Param("share") ShareEntity share);

    void setShareExpireByIds(List<Integer> shareIds);

    void autoDeleteExpireShare();
}
